const dayjs = require("dayjs");
const db = require("../../middleware/db");
const Sequelize = require("sequelize");

module.exports = db.define("pro_type", {
  name: {
    comment: "名称",
    type: Sequelize.STRING(50),
    allowNull: false,
    defaultValue: "",
  },

  is_usable: {
    comment: "是否可用",
    type: Sequelize.INTEGER(2),
    allowNull: false,
    defaultValue: "0",
  },

  sort: {
    comment: "排序",
    type: Sequelize.INTEGER(11),
    allowNull: false,
    defaultValue: "0",
  },
});
